﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Web.UI;
using System.Web.UI.WebControls;
using EnvironmentManagerSystem.MODE;
using EnvironmentManagerSystem.BLL;
using EnvironmentManagerSystem.Utility;
using System.Collections;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls.WebParts;
using System.IO;
using System.Text;
using System.Drawing;

namespace EnvironmentManagerSystem.HuanTong
{
    public partial class TcHySjJhbHy : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (StfInfo.ReSession()) return; if (!IsPostBack)
            {
                #region lblTime1显示15天时间
                lblTime1.Text = DateTime.Now.ToString("yyyy-MM-dd");
                lblTime2.Text = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd");
                lblTime3.Text = DateTime.Now.AddDays(2).ToString("yyyy-MM-dd");
                lblTime4.Text = DateTime.Now.AddDays(3).ToString("yyyy-MM-dd");
                lblTime5.Text = DateTime.Now.AddDays(4).ToString("yyyy-MM-dd");
                lblTime6.Text = DateTime.Now.AddDays(5).ToString("yyyy-MM-dd");
                lblTime7.Text = DateTime.Now.AddDays(6).ToString("yyyy-MM-dd");
                lblTime8.Text = DateTime.Now.AddDays(7).ToString("yyyy-MM-dd");
                lblTime9.Text = DateTime.Now.AddDays(8).ToString("yyyy-MM-dd");
                lblTime10.Text = DateTime.Now.AddDays(9).ToString("yyyy-MM-dd");
                lblTime11.Text = DateTime.Now.AddDays(10).ToString("yyyy-MM-dd");
                lblTime12.Text = DateTime.Now.AddDays(11).ToString("yyyy-MM-dd");
                lblTime13.Text = DateTime.Now.AddDays(12).ToString("yyyy-MM-dd");
                lblTime14.Text = DateTime.Now.AddDays(13).ToString("yyyy-MM-dd");
                lblTime15.Text = DateTime.Now.AddDays(14).ToString("yyyy-MM-dd");
                #endregion

                LabelBind();
            }
        }
        #region lblXM/lblDD显示
        private void LabelBind()
        {
            //当天
            DevelopprojectbasicinfoDataCollection lst1 = HuanPingService.GetZhuanjiahuiyis(lblTime1.Text);
            if (lst1.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item1 in lst1)
                {
                    if (item1.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM1.Text += "项目名称:" + item1.ProjectName + "&nbsp;&nbsp;会议地点:" + item1.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item1.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item1.EIAIndustryType + "<br />";
                        //lblDD1.Text += item1.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item1.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM1.Text += "项目名称:" + item1.ProjectName + "&nbsp;&nbsp;会议地点:" + item1.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item1.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item1.EIAIndustryType + "<br />";
                        //lblDDa1.Text += item1.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过1天
            DevelopprojectbasicinfoDataCollection lst2 = HuanPingService.GetZhuanjiahuiyis(lblTime2.Text);
            if (lst2.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item2 in lst2)
                {
                    if (item2.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM2.Text += "项目名称:" + item2.ProjectName + "&nbsp;&nbsp;会议地点:" + item2.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item2.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item2.EIAIndustryType + "<br />";
                        //lblDD2.Text += item2.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item2.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM2.Text += "项目名称:" + item2.ProjectName + "&nbsp;&nbsp;会议地点:" + item2.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item2.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item2.EIAIndustryType + "<br />";
                        //lblDDa2.Text += item2.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过2天
            DevelopprojectbasicinfoDataCollection lst3 = HuanPingService.GetZhuanjiahuiyis(lblTime3.Text);
            if (lst3.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item3 in lst3)
                {
                    if (item3.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM3.Text += "项目名称:" + item3.ProjectName + "&nbsp;&nbsp;会议地点:" + item3.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item3.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item3.EIAIndustryType + "<br />";
                        //lblDD3.Text += item3.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item3.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM3.Text += "项目名称:" + item3.ProjectName + "&nbsp;&nbsp;会议地点:" + item3.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item3.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item3.EIAIndustryType + "<br />";
                        //lblDDa3.Text += item3.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过3天
            DevelopprojectbasicinfoDataCollection lst4 = HuanPingService.GetZhuanjiahuiyis(lblTime4.Text);
            if (lst4.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item4 in lst4)
                {
                    if (item4.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM4.Text += "项目名称:" + item4.ProjectName + "&nbsp;&nbsp;会议地点:" + item4.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item4.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item4.EIAIndustryType + "<br />";
                        //lblDD4.Text += item4.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item4.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM4.Text += "项目名称:" + item4.ProjectName + "&nbsp;&nbsp;会议地点:" + item4.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item4.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item4.EIAIndustryType + "<br />";
                        //lblDDa4.Text += item4.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过4天
            DevelopprojectbasicinfoDataCollection lst5 = HuanPingService.GetZhuanjiahuiyis(lblTime5.Text);
            if (lst5.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item5 in lst5)
                {
                    if (item5.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM5.Text += "项目名称:" + item5.ProjectName + "&nbsp;&nbsp;会议地点:" + item5.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item5.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item5.EIAIndustryType + "<br />";
                        //lblDD5.Text += item5.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item5.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM5.Text += "项目名称:" + item5.ProjectName + "&nbsp;&nbsp;会议地点:" + item5.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item5.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item5.EIAIndustryType + "<br />";
                        //lblDDa5.Text += item5.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过5天
            DevelopprojectbasicinfoDataCollection lst6 = HuanPingService.GetZhuanjiahuiyis(lblTime6.Text);
            if (lst6.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item6 in lst6)
                {
                    if (item6.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM6.Text += "项目名称:" + item6.ProjectName + "&nbsp;&nbsp;会议地点:" + item6.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item6.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item6.EIAIndustryType + "<br />";
                        //lblDD6.Text += item6.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item6.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM6.Text += "项目名称:" + item6.ProjectName + "&nbsp;&nbsp;会议地点:" + item6.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item6.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item6.EIAIndustryType + "<br />";
                        //lblDDa6.Text += item6.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过6天
            DevelopprojectbasicinfoDataCollection lst7 = HuanPingService.GetZhuanjiahuiyis(lblTime7.Text);
            if (lst7.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item7 in lst7)
                {
                    if (item7.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM7.Text += "项目名称:" + item7.ProjectName + "&nbsp;&nbsp;会议地点:" + item7.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item7.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item7.EIAIndustryType + "<br />";
                        //lblDD7.Text += item7.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item7.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM7.Text += "项目名称:" + item7.ProjectName + "&nbsp;&nbsp;会议地点:" + item7.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item7.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item7.EIAIndustryType + "<br />";
                        //lblDDa7.Text += item7.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过7天
            DevelopprojectbasicinfoDataCollection lst8 = HuanPingService.GetZhuanjiahuiyis(lblTime8.Text);
            if (lst8.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item8 in lst8)
                {
                    if (item8.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM8.Text += "项目名称:" + item8.ProjectName + "&nbsp;&nbsp;会议地点:" + item8.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item8.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item8.EIAIndustryType + "<br />";
                        //lblDD8.Text += item8.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item8.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM8.Text += "项目名称:" + item8.ProjectName + "&nbsp;&nbsp;会议地点:" + item8.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item8.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item8.EIAIndustryType + "<br />";
                        //lblDDa8.Text += item8.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过8天
            DevelopprojectbasicinfoDataCollection lst9 = HuanPingService.GetZhuanjiahuiyis(lblTime9.Text);
            if (lst9.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item9 in lst9)
                {
                    if (item9.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM9.Text += "项目名称:" + item9.ProjectName + "&nbsp;&nbsp;会议地点:" + item9.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item9.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item9.EIAIndustryType + "<br />";
                        //lblDD9.Text += item9.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item9.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM9.Text += "项目名称:" + item9.ProjectName + "&nbsp;&nbsp;会议地点:" + item9.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item9.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item9.EIAIndustryType + "<br />";
                        //lblDDa9.Text += item9.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过9天
            DevelopprojectbasicinfoDataCollection lst10 = HuanPingService.GetZhuanjiahuiyis(lblTime10.Text);
            if (lst10.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item10 in lst10)
                {
                    if (item10.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM10.Text += "项目名称:" + item10.ProjectName + "&nbsp;&nbsp;会议地点:" + item10.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item10.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item10.EIAIndustryType + "<br />";
                        //lblDD10.Text += item10.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item10.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM10.Text += "项目名称:" + item10.ProjectName + "&nbsp;&nbsp;会议地点:" + item10.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item10.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item10.EIAIndustryType + "<br />";
                        //lblDDa10.Text += item10.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过10天
            DevelopprojectbasicinfoDataCollection lst11 = HuanPingService.GetZhuanjiahuiyis(lblTime11.Text);
            if (lst11.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item11 in lst11)
                {
                    if (item11.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM11.Text += "项目名称:" + item11.ProjectName + "&nbsp;&nbsp;会议地点:" + item11.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item11.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item11.EIAIndustryType + "<br />";
                        //lblDD11.Text += item11.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item11.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM11.Text += "项目名称:" + item11.ProjectName + "&nbsp;&nbsp;会议地点:" + item11.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item11.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item11.EIAIndustryType + "<br />";
                        //lblDDa11.Text += item11.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过11天
            DevelopprojectbasicinfoDataCollection lst12 = HuanPingService.GetZhuanjiahuiyis(lblTime12.Text);
            if (lst12.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item12 in lst12)
                {
                    if (item12.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM12.Text += "项目名称:" + item12.ProjectName + "&nbsp;&nbsp;会议地点:" + item12.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item12.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item12.EIAIndustryType + "<br />";
                        //lblDD12.Text += item12.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item12.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM12.Text += "项目名称:" + item12.ProjectName + "&nbsp;&nbsp;会议地点:" + item12.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item12.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item12.EIAIndustryType + "<br />";
                        //lblDDa12.Text += item12.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过12天
            DevelopprojectbasicinfoDataCollection lst13 = HuanPingService.GetZhuanjiahuiyis(lblTime13.Text);
            if (lst13.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item13 in lst13)
                {
                    if (item13.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM13.Text += "项目名称:" + item13.ProjectName + "&nbsp;&nbsp;会议地点:" + item13.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item13.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item13.EIAIndustryType + "<br />";
                        //lblDD13.Text += item13.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item13.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM13.Text += "项目名称:" + item13.ProjectName + "&nbsp;&nbsp;会议地点:" + item13.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item13.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item13.EIAIndustryType + "<br />";
                        //lblDDa13.Text += item13.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过13天
            DevelopprojectbasicinfoDataCollection lst14 = HuanPingService.GetZhuanjiahuiyis(lblTime14.Text);
            if (lst13.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item14 in lst14)
                {
                    if (item14.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM14.Text += "项目名称:" + item14.ProjectName + "&nbsp;&nbsp;会议地点:" + item14.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item14.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item14.EIAIndustryType + "<br />";
                        //lblDD14.Text += item14.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item14.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM14.Text += "项目名称:" + item14.ProjectName + "&nbsp;&nbsp;会议地点:" + item14.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item14.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item14.EIAIndustryType + "<br />";
                        //lblDDa14.Text += item14.zhuanjiahuiyididian + "<br />";
                    }
                }
            }
            //过14天
            DevelopprojectbasicinfoDataCollection lst15 = HuanPingService.GetZhuanjiahuiyis(lblTime15.Text);
            if (lst15.Count > 0)
            {
                foreach (DevelopprojectbasicinfoData item15 in lst15)
                {
                    if (item15.zhuanjiahuiyiriqiflag == 1)
                    {
                        lblXM15.Text += "项目名称:" + item15.ProjectName + "&nbsp;&nbsp;会议地点:" + item15.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item15.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item15.EIAIndustryType + "<br />";
                        //lblDD15.Text += item15.zhuanjiahuiyididian + "<br />";
                    }
                    else if (item15.zhuanjiahuiyiriqiflag == 2)
                    {
                        lblXM15.Text += "项目名称:" + item15.ProjectName + "&nbsp;&nbsp;会议地点:" + item15.zhuanjiahuiyididian + "&nbsp;&nbsp;项目负责人:" + item15.xiangmufuzechuliren + "&nbsp;&nbsp;项目描述:" + item15.EIAIndustryType + "<br />";
                        //lblDDa15.Text += item15.zhuanjiahuiyididian + "<br />";项目负责人，项目描述
                    }
                }
            }
        }
        #endregion
    }
}
